<?php

class Core_Plugin_Helper_Log
{
	protected $_logs = array();

	public function __construct()
	{

	}

	public function getLog($name)
	{
		return isset($this -> _logs[$name]) ? $this -> _logs[$name] : ($this -> _logs[$name] = $this -> createLog($name));
	}

	public function createLog($name, $config = null)
	{
		return new Zend_Log(new Zend_Log_Writer_Stream(NUO_TEMP_PATH . '/log/' . $name . '.log'));
	}

}
